class Man(Person):
    manNum = 0
    @classmethod
    def howmanyMan(cls):
        print('there are {} men in this world'.format(cls.manNum))
    def __init__(self,pnick,page):
        Person.__init__(self,pnick,0,page)
        self.wife = None
    def marry(self,pwife):
        self.wife = pwife
    def intro(self):
        super().intro()
        #Person.intro(self)
        if self.wife == None:
            print('I am sigle!!!')
        else:
            print('I am married ')
class Woman(Person):
    WomanNum = 0
    @classmethod
    def howmanyWoman(cls):
        print('there are {} women in this world'.format(cls.WomanNum))
    def __init__(self,pnick,page):
        Person.__init__(self,pnick,1,page)
        self.child = None
    def born(self):
        from random import randint
        tsex =randint(0,1)
        if tsex == 0:
            baby = Man('noName',1)
        else:
            baby = Man('noName',1)
        self.child = baby
        return baby
    def intro(self):
        super().intro()
        if self.child == None:
            print('I have no child!!!')
        else:
            print('I have a child ')
        

m1 = Man("john",28)
m1.intro()
w1 = Woman('rose',18)
w1.intro()
m1.marry(w1)
m1.intro()
b1 = w1.born()
m1.intro()
b1.intro()

print(isinstance(m1,object))
print(isinstance(m1,Woman))
print(isinstance(m1,Person))
print(issubclass(Man,Person))
print(issubclass(Woman,Person))
print(issubclass(Man,object))